package com.zhengx.moduletest.di;

import android.content.Context;
import com.zhengx.moduletest.ModuleApplicationFake;

import javax.inject.Singleton;

import dagger.BindsInstance;
import dagger.Component;

/**
 * 注入到BaseFragment的Component
 * Created by zx on 2018/5/15.
 */
@Singleton
@Component(modules = {
    AppModule.class})
public interface AppComponent {

    MainActivityComponent.Builder mainActivityComponent();

    @Component.Builder
    interface Builder {
        @BindsInstance
        Builder context(Context context);
        AppComponent build();
    }

    void inject(ModuleApplicationFake applicationFake);
}
